package com.demoCode.model.auth.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class AuthLoginDto {

    @NotNull
    @Length(min = 6, max = 13, message = "密码长度应在6~13位之间")
    private String password;

    @NotNull
    @Length(min = 11, max = 11, message = "手机号应为11位")
    private String phone;

    @NotNull(message = "验证码不能为空")
    private CheckCaptchaDto captcha;
}
